import os
import uuid
class Myfile(object):
    def __init__(self):
        self.dir='./static/files/'
    # 重命名
    def rename(self,filename):
        name=os.path.splitext(filename)[1]
        fname=uuid.uuid4().hex+name
        return fname
myf=Myfile()
